package com.jerry.controller;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Map;

/**
 * @Description 
 * @author Jerry
 * @date 2016-08-18
 */
public class UserAction {
    public void queryUsers(String id){
        System.out.println("查询所有用户 all around the world");
    }

    public static void main(String[] args) {

        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:mvc-dispatcher-servlet.xml");

        UserAction userAction = (UserAction)ctx.getBean(UserAction.class);
        String id ="1230";
        userAction.queryUsers(id);

        ctx.destroy();
    }
}
